﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Kiel.Pdf
{
	public enum PdfVersion : byte
	{
		PDF_1_0,
		PDF_1_1,
		PDF_1_2,
		PDF_1_3,
		PDF_1_4,
		PDF_1_5,
		PDF_1_6,
		PDF_1_7
	}

	public static class PdfVersionExtensions
	{
		/// <summary>
		/// Returns the display string of this <see cref="PdfVersion"/>.
		/// </summary>
		/// <param name="version"></param>
		/// <returns></returns>
		public static string ToDisplayString(this PdfVersion version)
		{
			switch (version)
			{
				case PdfVersion.PDF_1_0:
					return "PDF-1.0";
				case PdfVersion.PDF_1_1:
					return "PDF-1.1";
				case PdfVersion.PDF_1_2:
					return "PDF-1.2";
				case PdfVersion.PDF_1_3:
					return "PDF-1.3";
				case PdfVersion.PDF_1_4:
					return "PDF-1.4";
				case PdfVersion.PDF_1_5:
					return "PDF-1.5";
				case PdfVersion.PDF_1_6:
					return "PDF-1.6";
				case PdfVersion.PDF_1_7:
					return "PDF-1.7";
				default:
					return string.Empty;
			}
		}
	}
}
